const to = promiseA => promiseA.then(res => [null, res]).catch(err => [err, null])
export default to
